/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.dto;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * DAPP平台客户
 *
 * @author pigx code generator
 * @date 2022-08-12 18:17:56
 */
@Data
public class UserMobileDTO {

	/**
	 * 系统id
	 */
	@TableId(type = IdType.NONE)
	@ApiModelProperty(value = "系统id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long uid;

	/**
	 * 邮箱
	 */
	@ApiModelProperty(value = "邮箱")
	private String email;

	/**
	 * 授权公链
	 */
	@ApiModelProperty(value = "授权公链")
	private String chain;

	/**
	 * 授权地址
	 */
	@ApiModelProperty(value = "授权地址")
	private String address;

	/**
	 * 资金密码
	 */
	@ApiModelProperty(value = "资金密码")
	private String moneyPassword;

	/**
	 * 客户邀请码
	 */
	@ApiModelProperty(value = "客户邀请码")
	private String inviteCode;

	/**
	 * 邀请人id
	 */
	@ApiModelProperty(value = "邀请人id")
	private Long inviterId;

	/**
	 * 是否经纪人 0 否 1 是
	 */
	@ApiModelProperty(value = "是否经纪人 0 否 1 是")
	private Integer isBroker;

	/**
	 * 是否确认风险告知 0否 1是
	 */
	@ApiModelProperty(value = "是否确认风险告知 0否 1是")
	private Integer isConfrimRisk;

	/**
	 * 账户状态（0=正常，1=禁用 ）
	 */
	@ApiModelProperty(value = "账户状态（0=正常，1=禁用 ）")
	private Integer status;

	/**
	 * 用户选择语言编号
	 */
	@ApiModelProperty(value="用户选择语言编号")
	private String languageCode;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updateTime;

	/**
	 * 最后登录时间
	 */
	@ApiModelProperty(value = "最后登录时间")
	private LocalDateTime lastTime;

	/**
	 * 最后登录IP
	 */
	@ApiModelProperty(value = "最后登录IP")
	private String lastIp;

	/**
	 * 逻辑删除标志
	 */
	@TableLogic
	@ApiModelProperty(value = "逻辑删除标志")
	private String delFlag;


	/**
	 * 验证码
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "验证码")
	private String userVerificationCode;

	/**
	 * 修改密码新密码
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "修改密码新密码")
	private String newMoneyPassword;

	/**
	 * 地址加签后参数
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "地址加签后参数")
	private String signature;

	/**
	 * 客户注册填写的邀请码
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "客户注册填写的邀请码")
	private String invitation;

	/**
	 * 系统用户登录账号
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "经纪人后台登录账户")
	private String userName;

	/**
	 * 系统用户登录密码
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "经纪人后台登录密码")
	private String password;
}
